package com.halflife.parameter.icon;

import com.halflife.framework.generator.annotation.QueryAnn;
import com.halflife.framework.generator.build.SimpleBuilder;
import com.halflife.framework.generator.build.UpdataBuilder;
import org.junit.jupiter.api.Test;

@QueryAnn(title = "Icons",mainTitle = "Icon",table = "t_parameter_icons")
public class Icon {
    @Test
    public void generate0()throws Exception{
        SimpleBuilder builder = new SimpleBuilder();
        builder.buildMapper(this.getClass());
//        builder.buildAll(this.getClass());
    }
    @Test
    public void generate()throws Exception{
        UpdataBuilder builder = new UpdataBuilder();
        builder.buildMapper(this.getClass());
//        builder.buildAlterTable(this.getClass());
    }
    private Integer id;
    @QueryAnn(value = "Name",operate = "like")
    private String name;
    @QueryAnn(value = "Catagory",operate = "like")
    private String catagory;
    @QueryAnn("Icon")
    private String icon;
    @QueryAnn("Photo")
    private String photo;
    @QueryAnn("Status")
    private String status;
    @QueryAnn(value = "Valid")
    private Boolean valid;
    public void init(){}

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCatagory() {
        return catagory;
    }

    public void setCatagory(String catagory) {
        this.catagory = catagory;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Boolean getValid() {
        return valid;
    }

    public void setValid(Boolean valid) {
        this.valid = valid;
    }


    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }
}
